package com.cxs.feignclient.client;

import com.cxs.feignclient.config.FeignConfig;


import com.example.common.Result;
import com.example.pojo.Student;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "user-service",configuration = FeignConfig.class)
public interface UserClient {

    @GetMapping("/student/selectById/{id}")
    Result selectById(@PathVariable Integer id);

    @GetMapping("/teacher/selectById/{id}")
    Result selectTeacherById(@PathVariable Integer id);
    @GetMapping("/student/selectStudentById/{id}")
    public Student selectStudentById(@PathVariable Integer id);
    @PutMapping("/student/update")
    Result update(@RequestBody Student student);
}
